//
//  AudioManager.m
//  TestAispeech
//
//  Created by shaowei on 13-9-8.
//  Copyright (c) 2013年 LianZhan. All rights reserved.
//

#import "AudioManager.h"

@implementation AudioManager

+ (BOOL)isHaveAudioPwd{
    NSString *pwd = [[NSUserDefaults standardUserDefaults] stringForKey:@"audio_pwd"];
    return pwd.length;
}

+ (void)setAudioPwd:(NSString *)pwdString{
    [[NSUserDefaults standardUserDefaults] setObject:pwdString forKey:@"audio_pwd"];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+ (BOOL)verifyAudioPwdWithString:(NSString *)pwdString{
    NSString *pwdSaved = [[NSUserDefaults standardUserDefaults] stringForKey:@"audio_pwd"];
    return [pwdSaved isEqualToString:pwdString];
}

@end
